<style>
</style>
<template>
    <ly-page>
        <ly-navi type="back" title="字数提示"></ly-navi>
        <ly-page-content>
            <el-form label-width="125px" size="small">
                <el-form-item label="字数提示" prop="desc">
                    <el-input type="textarea" v-model="form.desc"></el-input>
                    <ly-text-count v-model="form.desc" :max="10"></ly-text-count>
                </el-form-item>
                <ly-code-view>
                    <pre v-pre>
<el-input type="textarea" v-model="form.desc"></el-input>
<ly-text-count v-model="form.desc" :max="10"></ly-text-count>
                    </pre>

                </ly-code-view>
            </el-form>
            <ly-markdown>
                <pre v-pre>
## `ly-text-count`
------

#### Attributes

| 属性名  |说明   | 类型|可选值|默认值|
| ------------ | ------------ |------------ |------------ |------------ |
|  v-model | 关联的值	  |string |—	|—	|
|  max | 最大字数	  |int|—	|100	|
                    </pre>
            </ly-markdown>

        </ly-page-content>
    </ly-page>
</template>
<script>
    Rap.define("", [], function () {
        return {
            data: function () {
                return {
                    form: {
                        desc: ''
                    }
                };

            },
            mounted: function () {

            },
            methods: {}
        }
    })
</script>